Skip to content

Fix. Upload checker. Check ability to run the checker.#665

Merged
Glomberg merged 11 commits into
devfrom
Fix-Upload-checker-Check-ability-to-run-the-checker-VI
Jun 8, 2026
Merged

Fix. Upload checker. Check ability to run the checker.#665
Glomberg merged 11 commits into
devfrom
Fix-Upload-checker-Check-ability-to-run-the-checker-VI

Conversation

@Glomberg

@Glomberg Glomberg commented Jun 4, 2026

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Upload Checker execution flow to (1) add upload rate limiting and (2) gate running the checker behind additional permission/nonce checks in the admin upload flows.

Changes:

  • Added a dedicated rate-limiter hook for Upload Checker requests (UploadChecker::hasRateOverlimit()).
  • Updated spbc_upload_checker__check() to validate user capability/nonce (where applicable) and to block on rate-limit exceed.
  • Switched archive/content checking calls to instance-method invocation ($this->...) inside UploadChecker.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
lib/CleantalkSP/SpbctWP/Firewall/UploadChecker.php Introduces Upload Checker rate limiting helper and fixes non-static method calls to use $this.
inc/spbc-firewall.php Adds preflight permission/nonce checks and applies Upload Checker rate limiting before running the module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread inc/spbc-firewall.php Outdated
Comment thread inc/spbc-firewall.php Outdated
Comment thread inc/spbc-firewall.php
Comment thread inc/spbc-firewall.php
Comment thread inc/spbc-firewall.php Outdated
Comment thread inc/spbc-firewall.php Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread inc/spbc-firewall.php
@Glomberg Glomberg merged commit 1246f05 into dev Jun 8, 2026
5 checks passed
@Glomberg Glomberg deleted the Fix-Upload-checker-Check-ability-to-run-the-checker-VI branch June 8, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants